﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace DDDDemoABP1.DAL;

[DependsOn(
    typeof(DDDDemoABP1DomainModule),
    typeof(AbpAutoMapperModule)
    )]
public class DDDDemoABP1DALModule: AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<DDDDemoABP1DALModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<DDDDemoABP1DALModule>(validate: true);
        });
    }
}
